home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6644 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  891 b 

  1. Path: odin.visigenic.com!news
  2. From: Tim O'Neil <toneil@visigenic.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: && operator question
  5. Date: Thu, 15 Feb 1996 12:57:48 +0000
  6. Organization: Visigenic Software, Inc.
  7. Message-ID: <31232DCC.39A7@visigenic.com>
  8. References: <4fu69a$b7e@sphinx.Gsu.EDU> <31236240.1417@oc.com>
  9. NNTP-Posting-Host: vsi48.visigenic.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b5 (WinNT; I)
  14.  
  15. Larry Weiss wrote:
  16. > Matthew A Johnson wrote:
  17. >  > if(expression1 && expression2)
  18. >  >      some statement;
  19. >  > My question is, if expression1 is false will expression2 get evaluated at
  20. >  > all?
  21. > No.   Why do you ask that question here?
  22.  
  23. If not here, where? This is the C forum. Matthew; if you want control to
  24. fall through if either expression is true why don't you just write
  25. if(exp1 || exp2)
  26.    stamt;
  27. ?
  28.